<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>产品业绩 - 科谛量化</title>
    <style>
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'Courier New', monospace;
            background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 50%, #1e293b 100%);
            color: #fde047;
            line-height: 1.6;
        }

        .container {
            max-width: 1152px;
            margin: 0 auto;
            padding: 0 24px;
            padding-top: 96px;
            padding-bottom: 64px;
        }

        /* Navigation Header */
        .nav-header {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            background: rgba(0, 0, 0, 0.2);
            backdrop-filter: blur(16px);
            border-bottom: 1px solid rgba(251, 191, 36, 0.2);
            box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
            z-index: 50;
        }

        .nav-container {
            max-width: 1152px;
            margin: 0 auto;
            padding: 12px 16px;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .nav-dropdown {
            position: relative;
            display: inline-block;
        }

        .nav-title {
            font-size: 1.5rem;
            font-weight: 900;
            letter-spacing: 0.05em;
            background: linear-gradient(to right, #fbbf24, #f59e0b, #d97706);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            transform: skewX(-1deg);
            filter: drop-shadow(0 0 15px rgba(251, 191, 36, 0.4));
            cursor: pointer;
            transition: opacity 0.3s ease;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .nav-title:hover {
            opacity: 0.8;
        }

        .nav-dropdown-content {
            display: none;
            position: absolute;
            top: 100%;
            left: 0;
            width: 192px;
            background: rgba(0, 0, 0, 0.8);
            backdrop-filter: blur(16px);
            border: 1px solid rgba(251, 191, 36, 0.3);
            border-radius: 8px;
            margin-top: 0px;
        }

        .nav-dropdown:hover .nav-dropdown-content {
            display: block;
        }

        .nav-dropdown-item {
            display: block;
            padding: 12px 16px;
            color: #fde047;
            text-decoration: none;
            transition: all 0.3s ease;
            letter-spacing: 0.05em;
        }

        .nav-dropdown-item:hover {
            background: rgba(251, 191, 36, 0.2);
            color: #fef3c7;
        }

        .nav-menu {
            display: flex;
            gap: 32px;
            align-items: center;
        }

        .nav-link {
            color: rgba(254, 240, 138, 0.8);
            text-decoration: none;
            transition: color 0.3s ease;
            letter-spacing: 0.05em;
            transform: skewX(-1deg);
            filter: drop-shadow(0 0 8px rgba(251, 191, 36, 0.3));
        }

        .nav-link:hover {
            color: #fde047;
        }

        /* Hero Section */
        .hero-section {
            min-height: 300px;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            margin-bottom: 80px;
            text-align: center;
        }

        .hero-title {
            font-size: 3.5rem;
            font-weight: 900;
            margin-bottom: 24px;
            background: linear-gradient(to right, #fbbf24, #f59e0b, #d97706);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            transform: skewX(-1deg);
            filter: drop-shadow(0 0 15px rgba(251, 191, 36, 0.4));
            letter-spacing: 0.05em;
        }

        .hero-subtitle {
            font-size: 1.2rem;
            color: rgba(254, 240, 138, 0.8);
            margin-bottom: 32px;
            max-width: 768px;
            margin-left: auto;
            margin-right: auto;
            line-height: 1.8;
            letter-spacing: 0.05em;
        }

        /* Section Styles */
        .section {
            margin-bottom: 80px;
        }

        .section-container {
            background: rgba(0, 0, 0, 0.3);
            backdrop-filter: blur(16px);
            border: 1px solid rgba(251, 191, 36, 0.2);
            padding: 32px;
            border-radius: 12px;
            box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
            margin-bottom: 48px;
        }

        .section-title {
            font-size: 2rem;
            font-weight: 900;
            margin-bottom: 32px;
            text-align: center;
            color: #fbbf24;
            letter-spacing: 0.05em;
            transform: skewX(-1deg);
            filter: drop-shadow(0 0 15px rgba(251, 191, 36, 0.4));
        }

        /* Performance Cards Grid */
        .performance-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 24px;
            margin-bottom: 32px;
        }

        .performance-card {
            background: rgba(0, 0, 0, 0.2);
            backdrop-filter: blur(16px);
            border: 1px solid rgba(251, 191, 36, 0.2);
            border-radius: 12px;
            overflow: hidden;
            transition: all 0.3s ease;
            cursor: pointer;
        }

        .performance-card:hover {
            transform: scale(1.05);
            border-color: rgba(251, 191, 36, 0.4);
            box-shadow: 0 20px 40px rgba(251, 191, 36, 0.1);
        }

        .card-header {
            padding: 16px;
            text-align: center;
        }

        .card-title {
            font-size: 1.1rem;
            font-weight: 900;
            color: #fde047;
            letter-spacing: 0.05em;
            transform: skewX(-1deg);
        }

        .card-content {
            padding: 0 16px 16px;
        }

        .performance-image {
            width: 100%;
            height: 192px;
            object-fit: cover;
            border-radius: 8px;
            border: 1px solid rgba(251, 191, 36, 0.2);
        }

        /* Summary Card */
        .summary-card {
            background: rgba(0, 0, 0, 0.2);
            backdrop-filter: blur(16px);
            border: 1px solid rgba(251, 191, 36, 0.2);
            border-radius: 12px;
            padding: 32px;
            box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
        }

        .summary-title {
            font-size: 1.5rem;
            text-align: center;
            font-weight: 900;
            color: #fde047;
            letter-spacing: 0.05em;
            transform: skewX(-1deg);
            margin-bottom: 24px;
        }

        .summary-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 32px;
        }

        .advantages {
            margin-bottom: 24px;
        }

        .advantages h4 {
            font-size: 1.1rem;
            font-weight: 900;
            margin-bottom: 16px;
            color: #fde047;
            letter-spacing: 0.05em;
        }

        .advantages ul {
            list-style: none;
            color: rgba(254, 240, 138, 0.8);
        }

        .advantages li {
            display: flex;
            align-items: center;
            margin-bottom: 8px;
        }

        .advantages li::before {
            content: "";
            width: 8px;
            height: 8px;
            background: #fbbf24;
            border-radius: 50%;
            margin-right: 12px;
        }

        .metrics h4 {
            font-size: 1.1rem;
            font-weight: 900;
            margin-bottom: 16px;
            color: #fde047;
            letter-spacing: 0.05em;
        }

        .metric-row {
            display: flex;
            justify-content: space-between;
            margin-bottom: 12px;
        }

        .metric-label {
            color: rgba(254, 240, 138, 0.8);
        }

        .metric-value {
            font-weight: 900;
            color: #fbbf24;
        }

        /* Button Styles */
        .btn {
            padding: 12px 32px;
            border-radius: 6px;
            text-decoration: none;
            font-weight: 900;
            letter-spacing: 0.05em;
            transition: all 0.3s ease;
            cursor: pointer;
            border: none;
            backdrop-filter: blur(16px);
            background: linear-gradient(to right, rgba(251, 191, 36, 0.2), rgba(217, 119, 6, 0.2));
            border: 1px solid rgba(251, 191, 36, 0.4);
            color: #fde047;
            font-size: 1.1rem;
        }

        .btn:hover {
            background: linear-gradient(to right, rgba(251, 191, 36, 0.3), rgba(217, 119, 6, 0.3));
            border-color: rgba(251, 191, 36, 0.6);
        }

        .btn-center {
            display: block;
            margin: 32px auto 0;
            text-align: center;
        }

        /* US Stock Coming Soon */
        .coming-soon {
            text-align: center;
            padding: 48px 0;
        }

        .coming-soon-icon {
            width: 96px;
            height: 96px;
            margin: 0 auto 24px;
            border-radius: 50%;
            background: linear-gradient(to right, rgba(251, 191, 36, 0.2), rgba(217, 119, 6, 0.2));
            border: 1px solid rgba(251, 191, 36, 0.3);
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .coming-soon h3 {
            font-size: 2rem;
            font-weight: 900;
            color: #fbbf24;
            margin-bottom: 16px;
            letter-spacing: 0.05em;
            transform: skewX(-1deg);
            filter: drop-shadow(0 0 10px rgba(251, 191, 36, 0.4));
        }

        .coming-soon p {
            color: rgba(254, 240, 138, 0.8);
            font-size: 1.1rem;
            max-width: 512px;
            margin: 0 auto;
            line-height: 1.7;
        }

        /* Footer */
        .footer {
            background: rgba(0, 0, 0, 0.3);
            backdrop-filter: blur(16px);
            border-top: 1px solid rgba(251, 191, 36, 0.2);
            color: #fde047;
            padding: 40px 0;
        }

        .footer-container {
            max-width: 1152px;
            margin: 0 auto;
            padding: 0 16px;
        }

        .footer-content {
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            align-items: center;
            gap: 24px;
        }

        .footer-brand h2 {
            font-size: 1.5rem;
            font-weight: 900;
            background: linear-gradient(to right, #fbbf24, #f59e0b, #d97706);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            margin-bottom: 8px;
            transform: skewX(-1deg);
            filter: drop-shadow(0 0 15px rgba(251, 191, 36, 0.4));
            letter-spacing: 0.05em;
        }

        .footer-brand p {
            color: rgba(254, 240, 138, 0.7);
        }

        .footer-nav {
            display: flex;
            gap: 32px;
            flex-wrap: wrap;
            justify-content: center;
        }

        .footer-nav a {
            color: rgba(254, 240, 138, 0.7);
            text-decoration: none;
            transition: color 0.3s ease;
            letter-spacing: 0.05em;
        }

        .footer-nav a:hover {
            color: #fde047;
        }

        .footer-bottom {
            border-top: 1px solid rgba(251, 191, 36, 0.2);
            margin-top: 32px;
            padding-top: 32px;
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            align-items: center;
            gap: 16px;
        }

        .footer-copyright {
            color: rgba(254, 240, 138, 0.6);
            font-size: 0.9rem;
            text-align: center;
        }

        .footer-social {
            display: flex;
            gap: 16px;
        }

        .footer-social a {
            color: rgba(254, 240, 138, 0.6);
            text-decoration: none;
            transition: color 0.3s ease;
            font-size: 1.2rem;
        }

        .footer-social a:hover {
            color: #fde047;
        }

        /* Modal Styles */
        .modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.75);
            backdrop-filter: blur(4px);
            z-index: 100;
            align-items: center;
            justify-content: center;
            padding: 16px;
        }

        .modal.show {
            display: flex;
        }

        .modal-content {
            position: relative;
            max-width: 90vw;
            max-height: 90vh;
        }

        .modal-close {
            position: absolute;
            top: -40px;
            right: 0;
            background: none;
            border: none;
            color: #fde047;
            font-size: 2rem;
            cursor: pointer;
            transition: color 0.3s ease;
        }

        .modal-close:hover {
            color: #fbbf24;
        }

        .modal-image {
            max-width: 100%;
            max-height: 100%;
            object-fit: contain;
            border-radius: 8px;
            border: 1px solid rgba(251, 191, 36, 0.3);
        }

        .purchase-modal-content {
            background: rgba(0, 0, 0, 0.8);
            backdrop-filter: blur(16px);
            border: 1px solid rgba(251, 191, 36, 0.3);
            border-radius: 12px;
            padding: 24px;
            text-align: center;
            max-width: 512px;
        }

        .purchase-modal h3 {
            font-size: 1.5rem;
            font-weight: 900;
            margin-bottom: 16px;
            color: #fde047;
            letter-spacing: 0.05em;
            transform: skewX(-1deg);
        }

        .purchase-qr {
            max-width: 100%;
            max-height: 384px;
            object-fit: contain;
            margin: 0 auto;
            border-radius: 8px;
            border: 1px solid rgba(251, 191, 36, 0.3);
        }

        .purchase-modal p {
            color: rgba(254, 240, 138, 0.7);
            margin-top: 16px;
        }

        /* Back to Top */
        .back-to-top {
            position: fixed;
            bottom: 32px;
            right: 32px;
            width: 48px;
            height: 48px;
            background: linear-gradient(to right, rgba(251, 191, 36, 0.2), rgba(217, 119, 6, 0.2));
            border: 1px solid rgba(251, 191, 36, 0.4);
            color: #fde047;
            border-radius: 50%;
            display: none;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all 0.3s ease;
            backdrop-filter: blur(16px);
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
        }

        .back-to-top:hover {
            background: linear-gradient(to right, rgba(251, 191, 36, 0.3), rgba(217, 119, 6, 0.3));
            border-color: rgba(251, 191, 36, 0.6);
        }

        .back-to-top.show {
            display: flex;
        }

        /* Responsive Design */
        @media (max-width: 768px) {
            .nav-menu {
                display: none;
            }

            .hero-title {
                font-size: 2.5rem;
            }

            .section-title {
                font-size: 1.5rem;
            }

            .performance-grid {
                grid-template-columns: 1fr;
            }

            .summary-grid {
                grid-template-columns: 1fr;
            }

            .footer-content {
                flex-direction: column;
                text-align: center;
            }

            .footer-nav {
                flex-direction: column;
                gap: 16px;
            }

            .footer-bottom {
                flex-direction: column;
            }
        }

        /* Decorative Elements */
        .decorative-dots {
            position: absolute;
            pointer-events: none;
        }

        .dot-1 {
            top: 25%;
            left: 25%;
            width: 8px;
            height: 8px;
            background: #fbbf24;
            border-radius: 50%;
            opacity: 0.3;
            animation: pulse 2s infinite;
        }

        .dot-2 {
            top: 33%;
            right: 25%;
            width: 4px;
            height: 4px;
            background: #f59e0b;
            border-radius: 50%;
            opacity: 0.4;
            animation: pulse 2s infinite 1s;
        }

        .dot-3 {
            bottom: 25%;
            left: 33%;
            width: 6px;
            height: 6px;
            background: #d97706;
            border-radius: 50%;
            opacity: 0.25;
            animation: pulse 2s infinite 2s;
        }

        .dot-4 {
            bottom: 33%;
            right: 33%;
            width: 4px;
            height: 4px;
            background: #fbbf24;
            border-radius: 50%;
            opacity: 0.35;
            animation: pulse 2s infinite 0.5s;
        }

        @keyframes pulse {
            0%, 100% {
                opacity: 0.3;
                transform: scale(1);
            }
            50% {
                opacity: 0.8;
                transform: scale(1.2);
            }
        }
    </style>
</head>
<body>
    <!-- Navigation Header -->
    <header class="nav-header">
        <div class="nav-container">
            <div class="nav-dropdown">
                <div class="nav-title">
                    产品业绩
                    <span>▼</span>
                </div>
                <div class="nav-dropdown-content">
                    <a href="index.html" class="nav-dropdown-item">主页</a>
                    <a href="personal.html" class="nav-dropdown-item">个人主页</a>
                    <a href="company.html" class="nav-dropdown-item">公司主页</a>
                    <a href="products.html" class="nav-dropdown-item">产品业绩</a>
                </div>
            </div>

            <div class="nav-menu">
                <a href="#crypto" class="nav-link">加密货币业绩</a>
                <a href="#astock" class="nav-link">A股业绩</a>
                <a href="#usstock" class="nav-link">美股业绩</a>
            </div>
        </div>
    </header>

    <div class="container">
        <!-- Hero Section -->
        <section class="hero-section">
            <h1 class="hero-title">产品业绩展示</h1>
            <p class="hero-subtitle">基于真实交易数据的业绩表现，展示我们量化策略的卓越成果</p>
        </section>

        <!-- Cryptocurrency Performance -->
        <section id="crypto" class="section">
            <div class="section-container">
                <h2 class="section-title">加密货币业绩</h2>

                <div class="performance-grid">
                    <div class="performance-card" onclick="openImageModal('assets/images/eth-performance.png')">
                        <div class="card-header">
                            <h3 class="card-title">ETH策略表现</h3>
                        </div>
                        <div class="card-content">
                            <img src="assets/images/eth-performance.png" alt="ETH策略业绩图表" class="performance-image">
                        </div>
                    </div>

                    <div class="performance-card" onclick="openImageModal('assets/images/pepe-performance.png')">
                        <div class="card-header">
                            <h3 class="card-title">PEPE策略表现</h3>
                        </div>
                        <div class="card-content">
                            <img src="assets/images/pepe-performance.png" alt="PEPE策略业绩图表" class="performance-image">
                        </div>
                    </div>

                    <div class="performance-card" onclick="openImageModal('assets/images/sol-performance.png')">
                        <div class="card-header">
                            <h3 class="card-title">SOL策略表现</h3>
                        </div>
                        <div class="card-content">
                            <img src="assets/images/sol-performance.png" alt="SOL策略业绩图表" class="performance-image">
                        </div>
                    </div>
                </div>

                <div class="summary-card">
                    <h3 class="summary-title">策略总结</h3>
                    <div class="summary-grid">
                        <div class="advantages">
                            <h4>核心优势</h4>
                            <ul>
                                <li>高频交易算法，捕捉市场微观波动</li>
                                <li>多币种组合策略，分散投资风险</li>
                                <li>AI驱动的趋势识别和预测模型</li>
                                <li>24/7全天候自动化交易执行</li>
                            </ul>
                        </div>
                        <div class="metrics">
                            <h4>关键指标</h4>
                            <div class="metric-row">
                                <span class="metric-label">累计收益率</span>
                                <span class="metric-value">+127.5%</span>
                            </div>
                            <div class="metric-row">
                                <span class="metric-label">年化收益率</span>
                                <span class="metric-value">42.3%</span>
                            </div>
                            <div class="metric-row">
                                <span class="metric-label">最大回撤</span>
                                <span class="metric-value">-12.8%</span>
                            </div>
                            <div class="metric-row">
                                <span class="metric-label">夏普比率</span>
                                <span class="metric-value">2.15</span>
                            </div>
                            <div class="metric-row">
                                <span class="metric-label">胜率</span>
                                <span class="metric-value">68.4%</span>
                            </div>
                        </div>
                    </div>
                    <button class="btn btn-center" onclick="openPurchaseModal()">购买产品</button>
                </div>
            </div>
        </section>

        <!-- A-Stock Performance -->
        <section id="astock" class="section">
            <div class="section-container">
                <h2 class="section-title">A股业绩</h2>

                <div class="performance-grid">
                    <div class="performance-card" onclick="openImageModal('assets/images/guanghui-performance.png')">
                        <div class="card-header">
                            <h3 class="card-title">广汇能源业绩</h3>
                        </div>
                        <div class="card-content">
                            <img src="assets/images/guanghui-performance.png" alt="广汇能源业绩图表" class="performance-image">
                        </div>
                    </div>

                    <div class="performance-card" onclick="openImageModal('assets/images/zhongjing-performance.png')">
                        <div class="card-header">
                            <h3 class="card-title">仲景食品业绩</h3>
                        </div>
                        <div class="card-content">
                            <img src="assets/images/zhongjing-performance.png" alt="仲景食品业绩图表" class="performance-image">
                        </div>
                    </div>

                    <div class="performance-card" onclick="openImageModal('assets/images/jinbei-performance.png')">
                        <div class="card-header">
                            <h3 class="card-title">金杯电工业绩</h3>
                        </div>
                        <div class="card-content">
                            <img src="assets/images/jinbei-performance.png" alt="金杯电工业绩图表" class="performance-image">
                        </div>
                    </div>
                </div>

                <div class="summary-card">
                    <h3 class="summary-title">策略总结</h3>
                    <div class="summary-grid">
                        <div class="advantages">
                            <h4>核心优势</h4>
                            <ul>
                                <li>深度基本面分析，精选优质标的</li>
                                <li>多因子量化模型，捕捉市场异常</li>
                                <li>严格的风控体系，控制下行风险</li>
                                <li>行业轮动策略，把握结构性机会</li>
                            </ul>
                        </div>
                        <div class="metrics">
                            <h4>关键指标</h4>
                            <div class="metric-row">
                                <span class="metric-label">累计收益率</span>
                                <span class="metric-value">+89.2%</span>
                            </div>
                            <div class="metric-row">
                                <span class="metric-label">年化收益率</span>
                                <span class="metric-value">26.7%</span>
                            </div>
                            <div class="metric-row">
                                <span class="metric-label">最大回撤</span>
                                <span class="metric-value">-9.5%</span>
                            </div>
                            <div class="metric-row">
                                <span class="metric-label">夏普比率</span>
                                <span class="metric-value">1.92</span>
                            </div>
                            <div class="metric-row">
                                <span class="metric-label">胜率</span>
                                <span class="metric-value">72.1%</span>
                            </div>
                        </div>
                    </div>
                    <button class="btn btn-center" onclick="openPurchaseModal()">购买产品</button>
                </div>
            </div>
        </section>

        <!-- US Stock Performance -->
        <section id="usstock" class="section">
            <div class="section-container">
                <h2 class="section-title">美股业绩</h2>

                <div class="summary-card">
                    <h3 class="summary-title">策略总结</h3>
                    <div class="coming-soon">
                        <div class="coming-soon-icon">
                            <span style="font-size: 3rem;">📅</span>
                        </div>
                        <h3>敬请期待</h3>
                        <p>
                            我们的美股量化策略正在最后的测试和优化阶段，即将为您呈现卓越的投资表现。
                            请关注我们的最新动态，第一时间了解产品发布信息。
                        </p>
                    </div>
                    <button class="btn btn-center" onclick="openPurchaseModal()">购买产品</button>
                </div>
            </div>
        </section>
    </div>

    <!-- Footer -->
    <footer class="footer">
        <div class="footer-container">
            <div class="footer-content">
                <div class="footer-brand">
                    <h2>科谛量化</h2>
                    <p>专业的AI驱动量化投资平台</p>
                </div>

                <div class="footer-nav">
                    <a href="#crypto">加密货币业绩</a>
                    <a href="#astock">A股业绩</a>
                    <a href="#usstock">美股业绩</a>
                </div>
            </div>

            <div class="footer-bottom">
                <p class="footer-copyright">© 2025 科谛量化. 专注AI驱动的量化投资</p>
                <div class="footer-social">
                    <a href="#">💼</a>
                    <a href="#">🐙</a>
                    <a href="#">💬</a>
                    <a href="#">📚</a>
                </div>
            </div>
        </div>
    </footer>

    <!-- Image Modal -->
    <div id="imageModal" class="modal">
        <div class="modal-content">
            <button class="modal-close" onclick="closeImageModal()">×</button>
            <img id="modalImage" class="modal-image" src="" alt="业绩图表放大视图">
        </div>
    </div>

    <!-- Purchase Modal -->
    <div id="purchaseModal" class="modal">
        <div class="purchase-modal-content">
            <button class="modal-close" onclick="closePurchaseModal()">×</button>
            <h3>产品购买</h3>
            <img src="assets/images/fake-taobaoma.jpg" alt="产品购买二维码" class="purchase-qr">
            <p>扫描二维码购买产品</p>
        </div>
    </div>

    <!-- Back to Top Button -->
    <button id="backToTop" class="back-to-top" onclick="scrollToTop()">
        <span style="font-size: 1.5rem;">↑</span>
    </button>

    <!-- Decorative Elements -->
    <div class="decorative-dots dot-1"></div>
    <div class="decorative-dots dot-2"></div>
    <div class="decorative-dots dot-3"></div>
    <div class="decorative-dots dot-4"></div>

    <script>
        // Smooth scroll to sections
        document.querySelectorAll('a[href^="#"]').forEach(anchor => {
            anchor.addEventListener('click', function (e) {
                e.preventDefault();
                const target = document.querySelector(this.getAttribute('href'));
                if (target) {
                    const offset = 80;
                    const elementPosition = target.offsetTop - offset;
                    window.scrollTo({
                        top: elementPosition,
                        behavior: 'smooth'
                    });
                }
            });
        });

        // Back to top button
        window.addEventListener('scroll', function() {
            const backToTop = document.getElementById('backToTop');
            if (window.pageYOffset > 300) {
                backToTop.classList.add('show');
            } else {
                backToTop.classList.remove('show');
            }
        });

        function scrollToTop() {
            window.scrollTo({
                top: 0,
                behavior: 'smooth'
            });
        }

        // Image Modal
        function openImageModal(imageSrc) {
            const modal = document.getElementById('imageModal');
            const modalImage = document.getElementById('modalImage');
            modalImage.src = imageSrc;
            modal.classList.add('show');
        }

        function closeImageModal() {
            const modal = document.getElementById('imageModal');
            modal.classList.remove('show');
        }

        // Purchase Modal
        function openPurchaseModal() {
            const modal = document.getElementById('purchaseModal');
            modal.classList.add('show');
        }

        function closePurchaseModal() {
            const modal = document.getElementById('purchaseModal');
            modal.classList.remove('show');
        }

        // Close modals when clicking outside
        window.addEventListener('click', function(event) {
            const imageModal = document.getElementById('imageModal');
            const purchaseModal = document.getElementById('purchaseModal');
            
            if (event.target === imageModal) {
                closeImageModal();
            }
            if (event.target === purchaseModal) {
                closePurchaseModal();
            }
        });

        // Prevent modal content clicks from closing modal
        document.querySelectorAll('.modal-content, .purchase-modal-content').forEach(content => {
            content.addEventListener('click', function(e) {
                e.stopPropagation();
            });
        });
    </script>
</body>
</html> 